<div class="data-input">
    <fieldset>
        <legend><?php echo "$formTitle";?></legend>
        <?php
          echo form_open($subLink, "");
        ?>
        <label>Nama</label><?php echo form_input("nama", "", "id=nama")?>
        <fieldset class="field-group">
            <label>Tgl. Mulai</label>
            <?php echo form_input("tglMulai", "", "class='tanggal datepicker-input' id='tglMulai'");?>
        </fieldset>
        <fieldset class="field-group">
            <label>Tgl. Selesai</label>
            <?php echo form_input("tglSelesai", "", "class='tanggal datepicker-input' id='tglSelesai'");?>
        </fieldset>
        <label>Semester</label>
        <select name="semester" id="semester">
            <option value="">Pilih semester</option>
            <?php
               foreach ($listSemester as $row){
            ?> 
               <option value="<?php echo $row['id'];?>"><?php echo $row['nama'];?></option>
            <?php
               }
            ?>
        </select>
        <fieldset class="input-process">
            <?php
              echo form_submit("add", "Simpan", "class='button' style='margin-right:2px'");
              echo form_button('Batal', 'Batal', 'class=button onClick='."javascript:location.href='".base_url()."index.php/tahun_ajaran/'".'');
            ?>
        </fieldset>
        <?php
          echo form_close();
        ?>
    </fieldset>
</div>
